const _import =
  process.env.NODE_ENV === 'production'
    ? (file) => () => import('@/views/modules/' + file + '.vue')
    : (file) => require('@/views/modules/' + file + '.vue').default

export default [
  {
    path: 'demo',
    component: _import('demo/demo'),
    name: 'demo',
    meta: { title: 'demo' }
  },
  {
    path: 'demo/bird',
    component: _import('demo/bird/bird'),
    name: 'demo-bird',
    meta: { title: '像素鸟' }
  },
  {
    path: 'demo/rain',
    component: _import('demo/rain/rain'),
    name: 'demo-rain',
    meta: { title: '下雨效果' }
  },
  {
    path: 'demo/img',
    component: _import('demo/3dImg/index'),
    name: 'demo-img',
    meta: { title: '照片墙' }
  }
]
